; Improve documentation of 'shortdoc'
authorEli Zaretskii <eliz@gnu.org>
Tue, 4 Mar 2025 14:01:32 +0000 (16:01 +0200)
committerEli Zaretskii <eliz@gnu.org>
Tue, 4 Mar 2025 14:01:32 +0000 (16:01 +0200)
* lisp/emacs-lisp/shortdoc.el (shortdoc-display-group): Fix doc
string and wording of prompt.  (Bug#76723)

lisp/emacs-lisp/shortdoc.el

index 230df47821c18e812d2ab7e15f6f12ebca10a232..e74167cb1c7158d18eb7b74ed0b5bb929cf8f2f0 100644 (file)
@@ -1468,10 +1468,12 @@ A FUNC form can have any number of `:no-eval' (or `:no-value'),
 ;;;###autoload
 (defun shortdoc-display-group (group &optional function same-window)
   "Pop to a buffer with short documentation summary for functions in GROUP.
+Interactively, prompt for GROUP.
 If FUNCTION is non-nil, place point on the entry for FUNCTION (if any).
 If SAME-WINDOW, don't pop to a new window."
-  (interactive (list (completing-read "Show summary for functions in: "
-                                      (mapcar #'car shortdoc--groups))))
+  (interactive (list (completing-read
+                      "Group of functions for which to show summary: "
+                      (mapcar #'car shortdoc--groups))))
   (when (stringp group)
     (setq group (intern group)))
   (unless (assq group shortdoc--groups)